#include "setting.h"
#include "ui_setting.h"
#include<QDebug>
setting::setting(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::setting)
{
    ui->setupUi(this);
    ui->combobox_width->setCurrentText("76");
    ui->combobox_height->setCurrentText("27");
    ui->splash_time->setCurrentText("500");
    ui->move_time->setCurrentText("1000");
}

setting::~setting()
{
    delete ui;
}

void setting::on_check_clicked()
{
    int width=ui->combobox_width->currentText().toInt();
    int height=ui->combobox_height->currentText().toInt();
    int splash_time=ui->splash_time->currentText().toInt();
    int move_time=ui->move_time->currentText().toInt();
    sendinfo(width,height,splash_time,move_time);
    close();
}
